<AdminTpl file="Common/Head"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
  <AdminTpl file="Common/Nav"/>
  <form name="myform" action="{:U('Formguide/index')}" method="post" class="J_ajaxForm">
    <div class="table_list">
      <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tableClass">
        <thead>
          <tr>
            <td width="12%" align="left">菜品ID</td>
            <td  align="center">菜品名称</td>
            <td  align="center">商家ID</td>
            <td width="35%" align="center">管理操作</td>
          </tr>
        </thead>
        <tbody>
          <volist name="list" id="vo" key="k">
            <tr>
              <td>{$vo.cai_id}</td>
              <td align="center"><font color=blue>{$vo.cai_name}</font></td>
              <td align="center"><font color=blue>{$vo.cai_shop_id}_{:M("Shop")->where("shop_id = ".$vo['cai_shop_id']."")->getField("shop_name")}</font></td>
              <td align="center"><a href="/cai/{$vo['cai_id']}.html" target="_blank"> <font>查看详情</font></a> | 
              <if condition="$vo['status'] == 1">
              <a class="J_ajax_update" field="status" up_value="0" alert="确认关闭该菜品吗？" href="{:U('Cai/ajax_edit',array('id'=>$vo['cai_id']))}"> <font>关闭</font> </a>
              <else/>
              <a class="J_ajax_update" field="status" up_value="1" alert="确认开通该菜品吗？" href="{:U('Cai/ajax_edit',array('id'=>$vo['cai_id']))}"> <font>开通</font> </a>
              </if>
              
              </td>
            </tr>
          </volist>
        </tbody>
      </table>
      <div class="p10">
        <div class="pages">{$page}</div>
      </div>
    </div>
  </form>
</div>
<script src="/static/common/js/common.js?v"></script> 
<script src="/static/common/js/content_addtop.js"></script> 
<script>
        //调用
        function call(id) {
            omnipotent("call", GV.REAL_FILE+'?a=public_call&m=Formguide&g=Formguide&formid=' + id, "调用方式", 1, '700px', '300px');
        }
		 //所有的删除操作，删除数据后刷新页面
		 $(document).ready(function(e) {
         
        });
   
    </script>
</body>
</html>